package cn.yzx.pethome.system.sdt.service.impl;

import cn.yzx.pethome.system.sdt.domain.SystemDictionaryDetail;
import cn.yzx.pethome.system.sdt.mapper.SystemDictionaryDetailMapper;
import cn.yzx.pethome.system.sdt.query.SystemDictionaryDetailQuery;
import cn.yzx.pethome.system.sdt.service.ISystemDictionaryDetailService;
import cn.yzx.pethome.base.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(readOnly = true,propagation = Propagation.SUPPORTS)
public class SystemDictionaryDetailServiceImpl extends BaseServiceImpl<SystemDictionaryDetail> implements ISystemDictionaryDetailService {
    @Autowired
    private SystemDictionaryDetailMapper systemDictionaryDetailMapper;


    @Override
    public List<SystemDictionaryDetail> findByTypeId(SystemDictionaryDetailQuery query) {
        return systemDictionaryDetailMapper.findByTypeId(query);
    }

}